//
// Created by Asus on 2025/6/2.
//

#include <iostream>
#include <vector>
#include <bits/ostream.tcc>
using namespace std;

void demo01() {
    vector<int> v;
    for (int i = 0; i < 10; i++) {
        v.push_back(i);
    }
    for (int i = 0; i < 10; i++) {
        cout << v[i] << endl;
    }
    cout << endl;

    cout << "v front: " << v.front() << endl;
    cout << "v back: " << v.back() << endl;
}

int main(int argc, char *argv[]) {
    demo01();
    return 0;
}
